home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
cprog.EXE
/
CC_1.ZIP
/
PEEKC.C
< prev
next >
Wrap
Text File
|
1988-02-01
|
512b
|
16 lines
/*
** get a byte from a specified segment and offset
*/
peekc(seg, offset) int seg; char *offset; {
#asm
MOV BX,[BP]+6 ;get segment
MOV ES,BX
MOV BX,[BP]+4 ;get offset
MOV AL,ES:[BX] ;get the byte into the return code reg
CBW ;sign extend
MOV BX,DS
MOV ES,BX ;restore ES
#endasm
}